package com.javasm.finance.entity;

import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Product {
    //产品编号
    private Integer prodId;
    //产品名称
    private String prodName;
    //推荐度
    private String prodReco;
    //是否首发
    private Integer prodFirst;
    //是否开启线上申购
    private Integer onlineSub;
    //投顾端
    private Integer prodisvisible;
    //理由
    private String prodReason;
    //产品类型
    private String parentClass;
    private Integer parentId;
    //关联性
    private String relevance;

    public Product(Integer prodId, String prodName, String prodReco, Integer prodFirst, Integer onlineSub, Integer prodisvisible, String prodReason, String parentClass, Integer parentId) {
        this.prodId = prodId;
        this.prodName = prodName;
        this.prodReco = prodReco;
        this.prodFirst = prodFirst;
        this.onlineSub = onlineSub;
        this.prodisvisible = prodisvisible;
        this.prodReason = prodReason;
        this.parentClass = parentClass;
        this.parentId = parentId;

    }

    public Product(Integer prodId, String prodName) {
        this.prodId = prodId;
        this.prodName = prodName;
    }

    public Product(Integer prodId, String prodName, String prodReco, Integer prodFirst, Integer onlineSub, Integer prodisvisible, String prodReason, String relevance) {
        this.prodId = prodId;
        this.prodName = prodName;
        this.prodReco = prodReco;
        this.prodFirst = prodFirst;
        this.onlineSub = onlineSub;
        this.prodisvisible = prodisvisible;
        this.prodReason = prodReason;
        this.relevance = relevance;
    }
}

